<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>用户中心</title>
</head>
<body>
<style>
.all{width:500px;height:200px;border:0px solid gray;}
.left{width:140px;height:200px;border:1px solid gray;float:left;line-height:30px;}
.right{width:320px;height:200px;border:1px solid gray;float:left;margin-left:5px;text-align:center;}
</style>
<a href="__URL__/logout">退出</a>
<h2>简单的权限管理</h2>
<eq name="Think.session.authId" value='1'>
<div class="all">
	<div class='left'>
	角色列表：<br />
		<volist name='list' id='vo'>
			设置<a href='__URL__/set/id/{$vo.id}'>{$vo.name}</a>权限<br />
		</volist>
	</div>
	<div class='right'>
		<form action='__URL__/set' method="post" name='form'>
			<input type='hidden' name='id' value='{$id}'> 
			<label><input type="checkbox" name='name[]' value='1'>INDEX板块权限</label><br />
			<label><input type="checkbox" name='name[]' value='2'>添加文章权限</label><br />
			<label><input type="checkbox" name='name[]' value='16'>删除文章权限</label><br />
			<label><input type="checkbox" name='name[]' value='4'>查找文章权限</label><br />
			<label><input type="checkbox" name='name[]' value='8'>编辑文章权限</label><br />
			<input type="submit" name='submit' value='保存'>
		</form>
	</div>
</div>
</eq>
点击测试：
<br />
<a href="__URL__/add">添加文章</a><br /><br />
<a href="__URL__/del">删除文章</a><br /><br />
<a href="__URL__/select">查找文章</a><br /><br />
<a href="__URL__/edite">编辑文章</a><br /><br />
</body>
</html>